import axios from './axios'

// 获取护工负责的老人列表

// 上传照片
export const uploadPhoto = (data) => axios.post('/photo/upload', data, {
  headers: {
    'Content-Type': 'multipart/form-data'
  }
})

// 获取照片列表
export const getPhotos = (params) => axios.get('/photo/list', { params })

// 获取家属照片列表
export const getFamilyPhotos = (params) => axios.get('/photo/family/list', { params })

// 删除照片
export const deletePhoto = (photoId) => axios.delete(`/photo/${photoId}`)

// 更新照片描述
export const updatePhotoDescription = (data) => axios.put('/photo/description', data)

// 发送照片给家属
export const sendPhotoToFamily = (data) => axios.post('/photo/send-to-family', data)

// 获取照片统计
export const getPhotoStats = () => axios.get('/photo/stats')
